package com.kaibai.service;

import com.kaibai.pojo.Page;
import com.kaibai.pojo.User;

import java.util.List;

public interface UserService {

    int insert(User user);

    int deleteById(int id);

    int update(User user);

    User getUserById(int id);

    List<User> getAll();

    boolean login(String name,String password);

    boolean existsUsername(String name);

    User getUserByName(String name);

    Page<User> page(int pageNo, int pageSize);
}
